package org.zjt.thread.interrupt;

import org.apache.http.client.config.RequestConfig;

/**
 * Description:
 *
 * @author juntao.zhang
 * Date: 2018-05-31 下午3:28
 * @see
 */
public class RequestConfigLoader {

    private RequestConfig requestConfig ;

    public RequestConfig getRequestConfig() {
        return requestConfig;
    }

    public RequestConfigLoader(){
        requestConfig = RequestConfig.custom()
                .setConnectionRequestTimeout(2 * 1000)
                .setConnectTimeout(2 * 1000)
                .setSocketTimeout(5 * 1000)
                .build();
    }
}
